package com.fg.pro.model.trade.dto;

import lombok.Data;

import java.util.List;

@Data
public class GmQuotationDto {

    @Data
    public class GmQuotationRequest {

        public Page paging;

        public GmQuotationRequest gmQuotationRequest(int limit) {
            GmQuotationDto.GmQuotationRequest.Page page = new GmQuotationDto.GmQuotationRequest.Page();
            page.setLimit(limit);
            GmQuotationDto.GmQuotationRequest gmQuotationRequest = new GmQuotationDto.GmQuotationRequest();
            gmQuotationRequest.setPaging(page);
            return gmQuotationRequest;
        }

        @Data
        public class Page {
            public int limit;
        }
    }

    @Data
    public class GmQuotationReponse {
        public List<GmQuotationData> quotations;

        @Data
        public class GmQuotationData{
            public Long quotation_id;
            public Long create_time;
            public Long update_time;
            public Long group_id;
            public Long station_id;

            public String inner_name;
            public String outer_name;

            public Integer type;
            public Integer sku_count;
            public Integer normal_sku_count;
            public Integer customer_count;
            public Integer status;
            public String serial_no;
            public Boolean child_customer_quotation_available;
            public Integer valid_time_type;
        }
    }

}
